"use strict";

const common = require('@tuniu/light-common');
class TuniuError extends common.Error {
}

TuniuError.codes['USER_NOT_LOGIN'] = 19023;
TuniuError.codes['ROW_DELETED_FAILED'] = 19024;
TuniuError.codes['ROW_NOT_FOUND'] = 19025;

TuniuError.messages[TuniuError.codes['USER_NOT_LOGIN']] = '用户未登录.';
TuniuError.messages[TuniuError.codes['ROW_DELETED_FAILED']] = '行删除错误.';
TuniuError.messages[TuniuError.codes['ROW_NOT_FOUND']] = '记录未找到.';

module.exports = TuniuError;